package com.han.hotelplat.service.childtask;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.LongAccumulator;

import com.han.hotelplat.pojo.childtask.Childtask;
import com.han.hotelplat.pojo.hotelmanager.Hotelmanager;

public interface ChildTaskService {
	/**
	 * 获取指定任务指定日期的考勤
		 * @description	
		 * @author  han1088
		 * @param taskid
		 * @param date 日期格式yyyy-MM-dd
		 * @return
	 */
	public List<Childtask> getTaskAttendance(String taskid, String date);
	
	/**
	 * 获取指定帮工指定任务的考勤
		 * @description	
		 * @author  han1088
		 * @param taskid
		 * @param userid
		 * @return
	 */
	public Map<String, Object> getEmTaskAttendance(String taskid, String userid,String date);
	
	/**
	 * 
	 * @description	//查看已清洁房量
	 * @author  han1088
	 * @param taskid
	 * @param emid 
	 * @return
	 */
	public List<Childtask> getTaskRoomCountGroupByDate(String taskid, String emid);

	/**
	 * 
		 * @description	考勤确认
		 * @author  han1088
		 * @param childtaskids
		 * @param hotelid
		 * @return
	 */
	public Map<String,Object> authTaskAttendance(String childtaskids,Integer hotelid);
	
	public Map<String, Object> modifyChildTask(Childtask newChildtask);

	public List<Childtask> getTaskRoomCountGroupByEm(String taskid, String date);

	public Map<String, Object> paymentChildTask(String childtaskids,
			Integer hotelid, String userId, String realName);

	public void save(Childtask ct);

	public Map<String, Object> submitTaskAttendance(String taskid, String date,
			String userid, Float roomcount, String roomDetail);

	public Childtask getTaskAttendance(String taskid, String formatYMD, String emid);

	/**
	 * 
		 * @description	
		 * @author  han1088
		 * @param takid
		 * @param hotelid
		 * @param userid
		 * @param constraint 是否强制取消1是，非1否
		 * @return
	 */
	public Map<String, Object> paymentChildTaskToEm(String takid, Integer hotelid, 
			String userid, Integer constraint, String realname);

	public float getEmRoom(String userid);

	public Childtask findChildTaskById(Integer id);

	public void update(Childtask c);

	public List<Childtask> getEmChildTaskDetail(String taskId, String date);

	public Map<String, Object> editTaskAttendance(Integer id,String roomDetail);
}
